package com.peace.hospital.opdept.mapper.hospitalization;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peace.hospital.entity.hospitalization.Sckbed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 病床表 Mapper 接口
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-25
 */
@Mapper
public interface SckbedMapper extends BaseMapper<Sckbed> {

    /**通过病床id查询病床单价*/
    @Select("select sic.beds from hospitalization.sckbed sck " +
            "inner join hospitalization.sickroo sic on sck.sicid=sic.sicid " +
            "where sck.sckid=#{sckid}")
    Double selectUnitPriceBySckid(Integer sckid);
}
